/* 用户称号样式 */
.titles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.user-title {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 当前用户的消息调整 */
.current-user .titles-container {
    justify-content: flex-end;
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .titles-container {
        max-width: 180px;
    }
    
    .user-title {
        font-size: 10px;
        padding: 2px 6px;
    }
}